﻿package mvc{	import flash.events.Event;		public class SlideshowModel extends Model	{		public var images:XMLList;		public var currentImage:XML;		public var currentTitle:String;		public var currentFile:String;				public function SlideshowModel()		{					}				override protected function updateData():void		{			currentImage = images[currentIndex];			totalItems = images.length();			currentTitle = currentImage.title;			currentFile = currentImage.file;		}				override protected function dataLoaded(event:Event):void		{			data = new XML(loader.data);			images = data.image;			setCurrentIndex(currentIndex);		}	}}